package com.sm.imlibrary.model.http;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * created by zhud on 2019/8/7
 */
public class MessageImage implements Parcelable,Serializable {
    //图片
    public String imageUrl;
    //缩略图
    public String thumbnailUrl;

    public MessageImage() {
    }

    protected MessageImage(Parcel in) {
        imageUrl = in.readString();
        thumbnailUrl = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(imageUrl);
        dest.writeString(thumbnailUrl);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MessageImage> CREATOR = new Creator<MessageImage>() {
        @Override
        public MessageImage createFromParcel(Parcel in) {
            return new MessageImage(in);
        }

        @Override
        public MessageImage[] newArray(int size) {
            return new MessageImage[size];
        }
    };

}
